import {uuid} from 'vue-uuid'

export let containerConfigList = [
    {
        title:'默认问题组',
        isExpand:false,
        isHover:false,
        isClick:false,
        isSole:true,
        id:uuid.v4(),
        widgetList:[],
        sortTitle:'1',//排序序号
        itemTotalSource:0,
        parentWeight:0,
        isPrentAndChildSort:true,//是否参与父级容器和子项排序
        isChildSort:true,//是否开启子项排序
    }
]

export let formGlobalConf = {
    topTitle:'问卷标题',//顶部标题
    titleTip:'您好！感谢您参与此次调研，本次访问大约需要占用您3到5分钟时间。您的观点对我们非常重要。您的回答无所谓对与错，仅代表您的个人看法，请您认真作答，谢谢！',//标题说明
    isTotalSource:true, //是否开启打分
    totalSource:100,
    globalWeight:100,
    gaishanfenzhanbi:50,
    fuwufenzhanbi:50,
    isTimeRestriction:false, //是否开启时间限制
    actionStartTime:'',
    actionEndTime:'',
}

export function setContainerConfigList(containerConfigList1){
    containerConfigList = []
    containerConfigList = containerConfigList1
}

export function setFormGlobalConf(formGlobalConf1){
    formGlobalConf = {}
    formGlobalConf = formGlobalConf1
}